package com.tiny.cqzcp.service.klb.impl;

import com.tiny.cqzcp.dao.klb.LotteryKlbDao;
import com.tiny.cqzcp.pojo.klb.Lottery;
import com.tiny.cqzcp.service.klb.KlbLotteryService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zjm
 * @date 2020/07/22
 */
@Service
public class KlbLotteryServiceImpl implements KlbLotteryService {
    
    private LotteryKlbDao klbDao;

    @Autowired
    public KlbLotteryServiceImpl(LotteryKlbDao klbDao){
        this.klbDao = klbDao;
    }

    @Override
    public List<Lottery> selectByParams(Integer numbers) {
         return klbDao.selectByParams(numbers);
    }

    @Override
    public List<Lottery> selectMaxTerm() {
        return klbDao.selectMaxTerm();
    }


}
